package com.xz.example.entity;

import com.xz.example.factory.Shape;

/**
 * @author 张志航     
 * @version V1.0.0
 * @projectName design_mode
 * @title     Rectangle   
 * @package    com.xz.example.entity  
 * @date   2019/11/25 19:57  
 * @explain
 */
public class Rectangle extends Shape {
    @Override
    public void draw() {
        System.out.println("右边跟我一起画个方");
    }

    @Override
    public void erase() {
        System.out.println("方块被擦掉了!");
    }
}
